package com.sc.sc250601.cook.service;

import com.sc.sc250601.cook.pojo.Recipe;

import java.util.List;

public interface RecipeService {
    List<Recipe> weekTop();

    List<Recipe> weekTop1();

    List<Recipe> weekTop2();

    List<Recipe> favoriteTop();

    List<Recipe> getRecipesByType(String type);
    //根据用户id获取推荐菜谱
    List<Recipe> getRecipeListByUserId(Long userId);
    //无登录下获取菜谱
    List<Recipe> getRecipes();

    //点击菜谱浏览数量增加
    int addViewCount(Long id);
    //根据id获取菜谱
    Recipe getRecipeById(Long id);
    // 添加菜谱
    int addRecipe(Recipe r);
}
